/**
 * Copyright (c) 2007,中企动力华南研发中心<br>
 * All rights reserved.
 */
package com.ce.pms.renovation.dao.impl;

import java.util.List;

import org.hibernate.Query;

import com.ce.pms.base.dao.impl.PmsBaseDaoImpl;
import com.ce.pms.renovation.dao.IPassChargeItemDao;
import com.ce.pms.renovation.model.PassChargeItemDO;

/**
 * 功能描述：出入证收费项目<br>
 * @author 罗军林 创建日期：2008-12-29
 * @param <PassChargeItemDO>
 */
public class PassChargeItemDaoImpl extends PmsBaseDaoImpl<PassChargeItemDO> implements IPassChargeItemDao {
	/**
	 * 功能描述:查询指定出入证的收费项目<br>
	 * @param passId
	 * @return<br>
	 * Create author:罗军林<br>
	 * Create on:2008-12-29<br>
	 * Edit author:<br>
	 * Edit on:<br>
	 * Why:<br>
	 */
	public List<PassChargeItemDO> getPassChargeItemByPassId(Long passId){
		String hql="FROM PassChargeItemDO item WHERE item.pass.keyword=?";
		Query query=createQuery(hql, passId);
		return query.list();
	}
}
